<?php
	class config {
		function __construct()
		{
			$this->readConfig();
		}
		function readConfig()
		{
			if ( !@include_once(BASEDIR."config.php") )
			{
				error("Fatal Error: Config file (".BASEDIR."config.php) not found.",true);
			}
			else {
				foreach ( $config as $key => $value )
				{
					$this->$key = $value;
				}
				unset($config);
			}
		}
		function __toString()
		{
			return "config";
		}
	}
?>